<?php
namespace app\common\validate;

use think\Validate;

class Index extends Validate
{
    protected $rule = [
        'name'  => 'require',
        'address'=> 'require',
        'info'=> 'require',
      
    ];

    protected $message = [
        'agentname'         => '名称不能为空',
        'address'           => '地址不能为空',
        'name'              => '名称不能为空',
        'status'            => '{%status_val}',
    ];

    protected $scene = [
        'add'   => ['agentname', 'name', 'mobile', 'status'],
        'edit'  => ['agentname', 'name', 'address'],
        'password' => ['password', 'repassword'],
    ];
}